﻿using PivotCollectionTools.BasicCollection;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace PivotCollectionTools.BasicCollection.Tests
{
    
    
    /// <summary>
    ///This is a test class for PivotCollection_FacetTest and is intended
    ///to contain all PivotCollection_FacetTest Unit Tests
    ///</summary>
    [TestClass()]
    public class PivotCollection_FacetTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for FacetType
        ///</summary>
        public void FacetTypeTestHelper<T>()
            where T : class
        {
            string name = string.Empty; // TODO: Initialize to an appropriate value
            PivotCollection<T>.Facet target = new PivotCollection<T>.Facet(name); // TODO: Initialize to an appropriate value
            FacetTypes expected = new FacetTypes(); // TODO: Initialize to an appropriate value
            FacetTypes actual;
            target.FacetType = expected;
            actual = target.FacetType;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void FacetTypeTest()
        {
            FacetTypeTestHelper<GenericParameterHelper>();
            
        }

        /// <summary>
        ///A test for FacetOccurrenceLimit
        ///</summary>
        public void FacetOccurrenceLimitTestHelper<T>()
            where T : class
        {
            string name = string.Empty; // TODO: Initialize to an appropriate value
            PivotCollection<T>.Facet target = new PivotCollection<T>.Facet(name); // TODO: Initialize to an appropriate value
            FacetOccurrenceLimits expected = new FacetOccurrenceLimits(); // TODO: Initialize to an appropriate value
            FacetOccurrenceLimits actual;
            target.FacetOccurrenceLimit = expected;
            actual = target.FacetOccurrenceLimit;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void FacetOccurrenceLimitTest()
        {
            FacetOccurrenceLimitTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for FacetName
        ///</summary>
        public void FacetNameTestHelper<T>()
            where T : class
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            PivotCollection_Accessor<T>.Facet target = new PivotCollection_Accessor<T>.Facet(param0); // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            target.FacetName = expected;
            actual = target.FacetName;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        [DeploymentItem("PivotCollectionTools.BasicCollection.dll")]
        public void FacetNameTest()
        {
            FacetNameTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for FacetDisplayName
        ///</summary>
        public void FacetDisplayNameTestHelper<T>()
            where T : class
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            PivotCollection_Accessor<T>.Facet target = new PivotCollection_Accessor<T>.Facet(param0); // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            target.FacetDisplayName = expected;
            actual = target.FacetDisplayName;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        [DeploymentItem("PivotCollectionTools.BasicCollection.dll")]
        public void FacetDisplayNameTest()
        {
            FacetDisplayNameTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for ReadCollection
        ///</summary>
        public void ReadCollectionTestHelper<T>()
            where T : class
        {
            string name = string.Empty; // TODO: Initialize to an appropriate value
            PivotCollection<T>.Facet target = new PivotCollection<T>.Facet(name); // TODO: Initialize to an appropriate value
            T backingItem = null; // TODO: Initialize to an appropriate value
            target.ReadCollection(backingItem);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        public void ReadCollectionTest()
        {
            ReadCollectionTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for CollectFacet
        ///</summary>
        public void CollectFacetTestHelper<T>()
            where T : class
        {
            string name = string.Empty; // TODO: Initialize to an appropriate value
            PivotCollection<T>.Facet target = new PivotCollection<T>.Facet(name); // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.CollectFacet();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void CollectFacetTest()
        {
            CollectFacetTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for AddValue
        ///</summary>
        public void AddValueTestHelper<T>()
            where T : class
        {
            string name = string.Empty; // TODO: Initialize to an appropriate value
            PivotCollection<T>.Facet target = new PivotCollection<T>.Facet(name); // TODO: Initialize to an appropriate value
            object value = null; // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.AddValue(value);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void AddValueTest()
        {
            AddValueTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for Facet Constructor
        ///</summary>
        public void PivotCollection_FacetConstructorTest2Helper<T>()
            where T : class
        {
            string name = string.Empty; // TODO: Initialize to an appropriate value
            PivotCollection<T>.Facet target = new PivotCollection<T>.Facet(name);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        [TestMethod()]
        public void PivotCollection_FacetConstructorTest2()
        {
            PivotCollection_FacetConstructorTest2Helper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for Facet Constructor
        ///</summary>
        public void PivotCollection_FacetConstructorTest1Helper<T>()
            where T : class
        {
            string name = string.Empty; // TODO: Initialize to an appropriate value
            string displayName = string.Empty; // TODO: Initialize to an appropriate value
            PivotCollection<T>.Facet target = new PivotCollection<T>.Facet(name, displayName);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        [TestMethod()]
        public void PivotCollection_FacetConstructorTest1()
        {
            PivotCollection_FacetConstructorTest1Helper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for Facet Constructor
        ///</summary>
        public void PivotCollection_FacetConstructorTestHelper<T>()
            where T : class
        {
            string name = string.Empty; // TODO: Initialize to an appropriate value
            string displayName = string.Empty; // TODO: Initialize to an appropriate value
            FacetTypes type = new FacetTypes(); // TODO: Initialize to an appropriate value
            PivotCollection<T>.Facet target = new PivotCollection<T>.Facet(name, displayName, type);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        [TestMethod()]
        public void PivotCollection_FacetConstructorTest()
        {
            PivotCollection_FacetConstructorTestHelper<GenericParameterHelper>();
        }
    }
}
